package routers

import (
	"VirtualCamera/controllers/userRgame"

	"github.com/gin-gonic/gin"
)

func UserRgameRouterInit(r *gin.Engine) {
	//middlewares可配置中间件
	userRgameRouters := r.Group("/popu")

	{
		// 获取热门游戏列表
		userRgameRouters.GET("/gameList", userRgame.UserRgameController{}.GetPopuGames)
		// 用户点赞加分
		userRgameRouters.POST("/addDianzanScore",userRgame.UserRgameController{}.AddDianzanScore)
		// 用户收藏加分
		userRgameRouters.POST("/addColletScore",userRgame.UserRgameController{}.AddCollectScore)
		// 添加用户评论
		userRgameRouters.POST("/addPinglun",userRgame.UserRgameController{}.AddComment)
		// 获取用户评价列表
		userRgameRouters.GET("/getCommentList",userRgame.UserRgameController{}.GetCommentList)
	}
}

